import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 使用elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引入自定义方法
import func from './utils/func'
import * as echarts from 'echarts'

import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';

import scroll from 'vue-seamless-scroll'

import './assets/css/reset.css'
import axios from 'axios'
// 使用moment
import moment from 'moment'
// 使用moment
require("moment/min/locales.min");
moment.locale('zh-cn');

// 百度地图
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'pKC6VbZInzjYMUW2iuDAfEgSOYdII2Xd'
})
// 视频插件
import Video from 'video.js'
import 'video.js/dist/video-js.css'

import Highcharts from 'highcharts/highstock';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsDrilldown from 'highcharts/modules/drilldown';
import Highcharts3D from 'highcharts/highcharts-3d';

HighchartsMore(Highcharts)
HighchartsDrilldown(Highcharts);
Highcharts3D(Highcharts);

let bus = new Vue()

Vue.use(scroll)
Vue.use(ElementUI)
Vue.use(ViewUI);

Vue.prototype.$axios = axios
Vue.prototype.$video = Video
Vue.prototype.$moment = moment
Vue.prototype.$bus = bus
Vue.prototype.$copy = func.copy
Vue.prototype.$echarts = echarts
Vue.prototype.$Highcharts = Highcharts
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')